package com.hetao.assist.service.dal.base;

import com.github.pagehelper.Page;

import java.io.Serializable;

/**
 * @author hetao
 */
public interface PagingAndSortingService<T, ID extends Serializable> extends CrudService<T, ID> {

    Page<T> page(int pageNum, int pagSize);

    Page<T> page(int pageNum, int pagSize, String orderBy);

    Page<T> page(T entity, int pageNum, int pagSize);

    Page<T> page(T entity, int pageNum, int pagSize, String orderBy);

}
